package stringjob;

import java.nio.channels.ClosedByInterruptException;
import java.util.Arrays;

public class Split {
    public static void main(String[] args) {
        String num="abc123.abc456.abc78";
        String []a=num.split("[0-9]+");
        System.out.println(Arrays.toString(a));

        num=".123.456..78.....";
        String []b=num.split("\\.");
        System.out.println(Arrays.toString(b));
        System.out.println(b.length);



        String line="asd4815dasd215dsa15";
        String[]data=line.split("[a-z]+");
        System.out.println(Arrays.toString(data));
        System.out.println(data.length);
    }

}
